<style type="text/css">
    .bjui-pageHeader {
        font-size: 18px;
        font-weight: bold;
    }

    .form {
        padding: 15px;
    }

    .form dl {
        overflow: hidden;
        padding-top: 15px;
    }

    .form dt {
        color: #666;
        float: left;
        font-size: 14px;
        padding: 3px 0 0;
        width: 11%;
    }

    .form dd {
        float: left;
        line-height: 22px;
    }

    dd.desc {
        height: 30px;
        padding: 0 10px;
        width: 150px;
    }

    fieldset {
        margin-top: 5px;
        margin-left: 5px;
        padding: 5px;
    }
</style>
<div class="bjui-pageHeader">
    <!-- 分页使用FORM -->
    <form action="{:U('Auth/groupIndex')}" method="post" novalidate="novalidate" data-toggle="ajaxsearch" id="pagerForm">
    <!-- 分页使用FORM -->
    <!-- -->
        <input type="hidden" value="15" name="pageSize">
        <input type="hidden" value="{$nowPage}" name="pageCurrent">
        <input type="hidden" value="id" name="orderField">
        <input type="hidden" value="desc" name="orderDirection">
        <div class="bjui-searchBar">
            <button type="button" data-url="{:U('Auth/groupShow')}" class="btn btn-default" data-toggle="navtab" data-id="Auth-groupShow" data-reload-warn="已打开添加用户组，确认将重新载入?" data-title="添加用户组" data-icon="plus">添加用户组
            </button>
            <button type="button" class=" btn-default" data-icon="remove" data-confirm-msg="确实要删除选择项吗？" data-toggle="doajax" data-url="{:U('Auth/delGroupHandle')}?id={#bjui-selected}&batchFlag=1">删除</button>
            <input type="text" name="keyword" class="form-control" title="关键字" value="{$keyword}">
            <button data-icon="search" class="btn btn-default" type="submit">查询</button>
            <a data-icon="undo" data-clear-query="true" data-toggle="reloadsearch" href="javascript:;" class="btn btn-orange">清空查询</a>
        </div>
    </form>

</div>
<div class="bjui-pageContent">

    <form id="form_do" action="{:U('Auth/delGroupHandle')}" method="post" data-toggle="validate">
        <table class="table table-bordered table-hover table-striped table-top" data-selected-multi="true">
            <thead>
            <tr>
                <th>编号</th>
                <th>用户组名称</th>
                <th>描述</th>
                <th>状态</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <foreach name='role' item='v'>
                <tr data-id="{$v.id}">
                    <td>{$v.id}</td>
                    <td>{$v.title}</td>
                    <td>{$v.describe}</td>
                    <td><if condition="$v['status']">是<else/><font color="red">否</font></if></td>
                    <td>
                    <a href="{:U('Auth/accessSet',array('id' => $v['id']))}"  data-toggle="navtab"
                               data-id="Auth-accessSet" data-title="权限设置">权限设置</a>
                    <a href="{:U('Auth/accessCate',array('id' => $v['id']))}"  data-toggle="navtab"
                               data-id="Auth-accessCate" data-title="栏目访问权限设置">栏目访问</a>
                    <a href="{:U('Auth/editGroupView',array('id' => $v['id']))}" data-toggle="navtab"
                               data-id="Auth-editGroupView" data-title="修改">修改</a>
                    <a href="{:U('Auth/delGroupHandle',array('id' => $v['id']))}" data-toggle="doajax"
                               data-confirm-msg="确定要删除吗？" data-type="get">删除</a>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
    </form>
</div>
<div class="bjui-pageFooter">
    <div class="pages">
        <span>每页&nbsp;</span>

        <div class="selectPagesize">
            <select data-toggle="selectpicker" data-toggle-change="changepagesize">
                <option value="15">15</option>
                <option value="30">30</option>
                <option value="60">60</option>
                <option value="100">100</option>
            </select>
        </div>
        <span>&nbsp;条，共 {$totalRows} 条</span>
    </div>

    <div class="pagination-box" data-toggle="pagination" data-total="{$totalRows}" data-page-size="15"
         data-page-current="{$nowPage}"></div>


</div>